import Vue from 'vue'
import App from './App.vue'
import router from './router'
import store from './store'
import ElementUI from 'element-ui'
import 'element-ui/lib/theme-chalk/index.css'
import Print from 'vue-print-nb'
import htmlToPdf from '@/api/jspdf'

Vue.use(htmlToPdf)
Vue.use(Print)
Vue.use(ElementUI)

Vue.config.productionTip = false

//引入公共样式
import './css/base.css'
//导入字体图标
import './assets/fonts/iconfont.css'
//导入axios

/* //导入axios
import axios from "axios";
//配置基准路径
axios.defaults.baseURL = "http://klxin.cn:8888/api/private/v1"; */
// console.log(Vue);

// Vue.prototype.$axios = axios;

import brack from '@/component/brack'
import TreeTable from 'vue-table-with-tree-grid'
Vue.component('brack', brack)
Vue.component('tree-table', TreeTable)

new Vue({
  router,
  store,
  render: h => h(App)
}).$mount('#app')
